package com.zlx.xBiaoShop.controller;
import com.zlx.xBiaoShop.entity.Result;
import com.zlx.xBiaoShop.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


/**
* @Description type 控制器层
* @author admin
* @date 2020-12-05 17:52:12
*/
@RestController
@CrossOrigin
@RequestMapping("/type")
public class TypeController{

    @Autowired
    private TypeService typeService;

    @GetMapping("getAllGoodsType")
    public Result getAllGoodsType(){
        return new Result(typeService.getAllGoodsType());
    }
}
